package com.cet.base;

import java.util.Arrays;
import java.util.List;

/**
 * @program: cet-practice
 * @description:
 * @author: 陈恩涛
 * @create: 2023-05-28 09:08
 **/
public class LambdaTest {

    public static void main(String[] args) {
        List<Integer> integers = Arrays.asList(1, 2, 3, 4);

        System.out.println(integers.stream().reduce(0, Integer::sum));
    }
}
